package com.bh.shipment.convert;

import com.bh.shipment.domain.JcShipment;
import com.bh.shipment.domain.JcShipmentTemplate;
import com.bh.shipment.vo.JcShipmentListVo;
import com.bh.shipment.vo.JcShipmentSysApiVO;
import com.bh.shipment.vo.JcShipmentUnloadVo;
import com.bh.shipment.vo.JcShipmentVO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @Description
 * @Author slx
 * @Date 2024/3/3
 */
@Mapper(componentModel = "spring")
public interface JcShipmentConvert {
    JcShipmentVO toVO(JcShipment jcShipment);

    JcShipmentListVo jcShipmentToJcShipmentListVo(JcShipment jcShipment);

    List<JcShipmentListVo> toListVo(List<JcShipment> jcShipmentList);

    JcShipment toDO(JcShipmentVO jcShipmentVO);

    JcShipment toDO(JcShipmentTemplate jcShipmentTemplate);

    List<JcShipmentVO> toVOList(List<JcShipment> jcShipmentList);

    List<JcShipmentSysApiVO> toSysApiVo(List<JcShipment> jcShipmentList);

    List<JcShipment> toDOList(List<JcShipmentVO> jcShipmentVOList);

    JcShipmentUnloadVo toUnloadVo(JcShipment jcShipment);
}
